package pro30014_yn;


public class Main {
	// public static void main(String[] args) throws Exception {
	// //元数据表导出
	// Class.forName("net.sourceforge.jtds.jdbc.Driver");
	// Connection srcConn =
	// java.sql.DriverManager.getConnection("jdbc:jtds:sqlserver://172.16.1.3:1433/RDPMAPPREVV330014",
	// "sa", "eplugger");
	// IDialect srcDia = new DerbyDialect(srcConn,null);
	// FileOutputStream fos = new
	// FileOutputStream("/Users/firefly/Desktop/pro30014.txt");
	// DBUtils.expertInsertSQL(srcConn, srcDia, fos, new
	// String[]{"BIZ_CFG_SCENE","BIZ_CFG_EDIT_TABLE","BIZ_CFG_FORM","BIZ_CFG_EXPORT","BIZ_CFG_STAT","BIZ_CFG_TABLE","SYS_ENTITY_META"});
	// }
//	public static void main(String[] args) throws Exception {
//		Class.forName("com.mysql.jdbc.Driver");
//		Connection srcConn = java.sql.DriverManager
//				.getConnection(
//						"jdbc:mysql://127.0.0.1:3306/youwoapp?useUnicode=true&characterEncoding=utf-8&autoReconnect=true",
//						"youwo", "123456");
//		Class.forName("com.mysql.jdbc.Driver");
//		Connection srcConn = java.sql.DriverManager
//				.getConnection(
//						"jdbc:mysql://127.0.0.1:3306/youwoapp?useUnicode=true&characterEncoding=utf-8&autoReconnect=true",
//						"youwo", "123456");
//		FileOutputStream fos = new FileOutputStream(
//				"/Users/firefly/Desktop/youwo_insert.txt");
//		IDialect srcDia = new MySQLDialect(srcConn, "youwoapp");
//		OutputStreamWriter osw = new OutputStreamWriter(fos);
//		// 准备：获得要创建的表元数据
//		List<TableMeta> tMls = srcDia.getTableMetas(true, true, true, null);
//		System.out.println("[准备信息]：需要处理" + tMls.size() + "个表");
////		for (TableMeta tm : tMls) {
////			String createTableSql = DBUtils.buildCreateTableSQL(tm, srcDia);
////			osw.write(createTableSql+"\n");
////		}
////		DBUtils.expertInsertSQL(srcConn, srcDia, fos, null);
//		osw.flush();
//		osw.close();
//	}
}
